package com.mes.common.util;

/**
 * <p>
 * 
 * </p>
 * 
 * <p>
 * Created on Mar 17, 2008
 * </p>
 * 
 * @author lhy
 * 
 */
public interface IEncryption {
	/**
	 * 把所给的字符串加密
	 * 
	 * @param toEnc
	 * @return
	 * @throws RuntimeException
	 */
	public String getEncString(String toEnc) throws RuntimeException;

	/**
	 * 根据加密以后的值解密，暂时不需要？
	 * 
	 * @param enc
	 * @return
	 */
	public String getOrignalString(byte[] enc);

	/**
	 * @param toEnc
	 * @return
	 * @throws RuntimeException
	 */
	public byte[] getEncBytes(String toEnc) throws RuntimeException;
}
